package com.zx.web.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity：系统扫描错误日志 [engine:InnoDB,type:BASE TABLE,catalog:def,schema:file,name:sys_error,auto:43].
 * @author Ken
 * @since 2017-04-23 22:41
 * @version v1.0.0
 */
@Entity
@Table(name = "sys_error")
public class SysError implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 主键*/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;// 主键,key:PRI,null:NO,type:bigint,charset:,default: ,maxLen:

    /** 分类*/
    @Column(name = "etype")
    private String etype;// 分类,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:100

    /** 编号*/
    @Column(name = "no")
    private String no;// 编号,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:100

    /** 图，手册等的路径*/
    @Column(name = "detail")
    private String detail;// 图，手册等的路径,key:,null:YES,type:text,charset:utf8,default: ,maxLen:65,535

    /** 时间*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_create")
    private Date timeCreate;// 时间,key:,null:NO,type:datetime,charset:,default: ,maxLen:

    // @Transient
    // private Object transientFiled;

    public SysError() {}

    /**
     * 获取主键.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置主键.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取分类.
     */
    public String getEtype() {
        return this.etype;
    }

    /**
     * 设置分类.
     */
    public void setEtype(String etype) {
        this.etype = etype;
    }

    /**
     * 获取编号.
     */
    public String getNo() {
        return this.no;
    }

    /**
     * 设置编号.
     */
    public void setNo(String no) {
        this.no = no;
    }

    /**
     * 获取图，手册等的路径.
     */
    public String getDetail() {
        return this.detail;
    }

    /**
     * 设置图，手册等的路径.
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    /**
     * 获取时间.
     */
    public Date getTimeCreate() {
        return this.timeCreate;
    }

    /**
     * 设置时间.
     */
    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }
}
